package com.boot.order.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @TableName order
 */
@TableName(value ="orders")
@Data
public class Order {
    @TableId(type = IdType.AUTO)
    private Long id;

    private String code;

    private Long userId;

    private Long productId;

    private Integer productNum;

    private BigDecimal totalAmount;

    private Integer status;
}